package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.MovieShowRelationMapper;
import com.ruoyi.project.system.domain.MovieShowRelation;
import com.ruoyi.project.system.service.IMovieShowRelationService;

/**
 * 电影影厅关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-05-27
 */
@Service
public class MovieShowRelationServiceImpl implements IMovieShowRelationService 
{
    @Autowired
    private MovieShowRelationMapper movieShowRelationMapper;

    /**
     * 查询电影影厅关联
     * 
     * @param ${pkColumn.javaField} 电影影厅关联ID
     * @return 电影影厅关联
     */
    @Override
    public MovieShowRelation selectMovieShowRelationById(String id)
    {
        return movieShowRelationMapper.selectMovieShowRelationById(id);
    }

    /**
     * 查询电影影厅关联列表
     * 
     * @param movieShowRelation 电影影厅关联
     * @return 电影影厅关联
     */
    @Override
    public List<MovieShowRelation> selectMovieShowRelationList(MovieShowRelation movieShowRelation)
    {
        return movieShowRelationMapper.selectMovieShowRelationList(movieShowRelation);
    }

    /**
     * 新增电影影厅关联
     * 
     * @param movieShowRelation 电影影厅关联
     * @return 结果
     */
    @Override
    public int insertMovieShowRelation(MovieShowRelation movieShowRelation)
    {
        return movieShowRelationMapper.insertMovieShowRelation(movieShowRelation);
    }

    /**
     * 修改电影影厅关联
     * 
     * @param movieShowRelation 电影影厅关联
     * @return 结果
     */
    @Override
    public int updateMovieShowRelation(MovieShowRelation movieShowRelation)
    {
        return movieShowRelationMapper.updateMovieShowRelation(movieShowRelation);
    }

    /**
     * 批量删除电影影厅关联
     * 
     * @param ${pkColumn.javaField}s 需要删除的电影影厅关联ID
     * @return 结果
     */
    @Override
    public int deleteMovieShowRelationByIds(String [] ids)
    {
        return movieShowRelationMapper.deleteMovieShowRelationByIds(ids);
    }

    /**
     * 删除电影影厅关联信息
     * 
     * @param ${pkColumn.javaField} 电影影厅关联ID
     * @return 结果
     */
    @Override
    public int deleteMovieShowRelationById(String id)
    {
        return movieShowRelationMapper.deleteMovieShowRelationById(id);
    }
}
